package com.sophossystems.client.asmon.dto;


import java.io.Serializable;


public class DocumentosDTO implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -6790891035707187946L;

	/** 
	 * This attribute maps to the column idCliente in the DOCUMENTOS table.
	 */
	protected int idCliente;

	/** 
	 * This attribute maps to the column actaCons in the DOCUMENTOS table.
	 */
	protected int actaCons;

	/** 
	 * This attribute represents whether the primitive attribute actaCons is null.
	 */
	protected boolean actaConsNull = true;

	/** 
	 * This attribute maps to the column actaNac in the DOCUMENTOS table.
	 */
	protected int actaNac;

	/** 
	 * This attribute represents whether the primitive attribute actaNac is null.
	 */
	protected boolean actaNacNull = true;

	/** 
	 * This attribute maps to the column identRepLegal in the DOCUMENTOS table.
	 */
	protected int identRepLegal;

	/** 
	 * This attribute represents whether the primitive attribute identRepLegal is null.
	 */
	protected boolean identRepLegalNull = true;

	/** 
	 * This attribute maps to the column identOficial in the DOCUMENTOS table.
	 */
	protected int identOficial;

	/** 
	 * This attribute represents whether the primitive attribute identOficial is null.
	 */
	protected boolean identOficialNull = true;

	/** 
	 * This attribute maps to the column compDomicilio in the DOCUMENTOS table.
	 */
	protected int compDomicilio;

	/** 
	 * This attribute represents whether the primitive attribute compDomicilio is null.
	 */
	protected boolean compDomicilioNull = true;

	/** 
	 * This attribute maps to the column rfc in the DOCUMENTOS table.
	 */
	protected int rfc;

	/** 
	 * This attribute represents whether the primitive attribute rfc is null.
	 */
	protected boolean rfcNull = true;

	/** 
	 * This attribute maps to the column curp in the DOCUMENTOS table.
	 */
	protected int curp;

	/** 
	 * This attribute represents whether the primitive attribute curp is null.
	 */
	protected boolean curpNull = true;

	/** 
	 * This attribute maps to the column fea in the DOCUMENTOS table.
	 */
	protected int fea;

	/** 
	 * This attribute represents whether the primitive attribute fea is null.
	 */
	protected boolean feaNull = true;

	/** 
	 * This attribute maps to the column ciec in the DOCUMENTOS table.
	 */
	protected int ciec;

	/** 
	 * This attribute represents whether the primitive attribute ciec is null.
	 */
	protected boolean ciecNull = true;

	/** 
	 * This attribute maps to the column altaPatronal in the DOCUMENTOS table.
	 */
	protected int altaPatronal;

	/** 
	 * This attribute represents whether the primitive attribute altaPatronal is null.
	 */
	protected boolean altaPatronalNull = true;

	/** 
	 * This attribute maps to the column otro in the DOCUMENTOS table.
	 */
	protected String otro;
	
	protected int altaShcp;
	
	protected boolean altaShcpNull = true;
	
	protected int idClienteGeneral;

	/**
	 * Method 'Documentos'
	 * 
	 */
	public DocumentosDTO()
	{
	}

	/**
	 * Method 'getIdCliente'
	 * 
	 * @return int
	 */
	public int getIdCliente()
	{
		return idCliente;
	}

	/**
	 * Method 'setIdCliente'
	 * 
	 * @param idCliente
	 */
	public void setIdCliente(int idCliente)
	{
		this.idCliente = idCliente;
	}

	/**
	 * Method 'getActaCons'
	 * 
	 * @return int
	 */
	public int getActaCons()
	{
		return actaCons;
	}

	/**
	 * Method 'setActaCons'
	 * 
	 * @param actaCons
	 */
	public void setActaCons(int actaCons)
	{
		this.actaCons = actaCons;
		this.actaConsNull = false;
	}

	/**
	 * Method 'setActaConsNull'
	 * 
	 * @param value
	 */
	public void setActaConsNull(boolean value)
	{
		this.actaConsNull = value;
	}

	/**
	 * Method 'isActaConsNull'
	 * 
	 * @return boolean
	 */
	public boolean isActaConsNull()
	{
		return actaConsNull;
	}

	/**
	 * Method 'getActaNac'
	 * 
	 * @return int
	 */
	public int getActaNac()
	{
		return actaNac;
	}

	/**
	 * Method 'setActaNac'
	 * 
	 * @param actaNac
	 */
	public void setActaNac(int actaNac)
	{
		this.actaNac = actaNac;
		this.actaNacNull = false;
	}

	/**
	 * Method 'setActaNacNull'
	 * 
	 * @param value
	 */
	public void setActaNacNull(boolean value)
	{
		this.actaNacNull = value;
	}

	/**
	 * Method 'isActaNacNull'
	 * 
	 * @return boolean
	 */
	public boolean isActaNacNull()
	{
		return actaNacNull;
	}

	/**
	 * Method 'getIdentRepLegal'
	 * 
	 * @return int
	 */
	public int getIdentRepLegal()
	{
		return identRepLegal;
	}

	/**
	 * Method 'setIdentRepLegal'
	 * 
	 * @param identRepLegal
	 */
	public void setIdentRepLegal(int identRepLegal)
	{
		this.identRepLegal = identRepLegal;
		this.identRepLegalNull = false;
	}

	/**
	 * Method 'setIdentRepLegalNull'
	 * 
	 * @param value
	 */
	public void setIdentRepLegalNull(boolean value)
	{
		this.identRepLegalNull = value;
	}

	/**
	 * Method 'isIdentRepLegalNull'
	 * 
	 * @return boolean
	 */
	public boolean isIdentRepLegalNull()
	{
		return identRepLegalNull;
	}

	/**
	 * Method 'getIdentOficial'
	 * 
	 * @return int
	 */
	public int getIdentOficial()
	{
		return identOficial;
	}

	/**
	 * Method 'setIdentOficial'
	 * 
	 * @param identOficial
	 */
	public void setIdentOficial(int identOficial)
	{
		this.identOficial = identOficial;
		this.identOficialNull = false;
	}

	/**
	 * Method 'setIdentOficialNull'
	 * 
	 * @param value
	 */
	public void setIdentOficialNull(boolean value)
	{
		this.identOficialNull = value;
	}

	/**
	 * Method 'isIdentOficialNull'
	 * 
	 * @return boolean
	 */
	public boolean isIdentOficialNull()
	{
		return identOficialNull;
	}

	/**
	 * Method 'getCompDomicilio'
	 * 
	 * @return int
	 */
	public int getCompDomicilio()
	{
		return compDomicilio;
	}

	/**
	 * Method 'setCompDomicilio'
	 * 
	 * @param compDomicilio
	 */
	public void setCompDomicilio(int compDomicilio)
	{
		this.compDomicilio = compDomicilio;
		this.compDomicilioNull = false;
	}

	/**
	 * Method 'setCompDomicilioNull'
	 * 
	 * @param value
	 */
	public void setCompDomicilioNull(boolean value)
	{
		this.compDomicilioNull = value;
	}

	/**
	 * Method 'isCompDomicilioNull'
	 * 
	 * @return boolean
	 */
	public boolean isCompDomicilioNull()
	{
		return compDomicilioNull;
	}

	/**
	 * Method 'getRfc'
	 * 
	 * @return int
	 */
	public int getRfc()
	{
		return rfc;
	}

	/**
	 * Method 'setRfc'
	 * 
	 * @param rfc
	 */
	public void setRfc(int rfc)
	{
		this.rfc = rfc;
		this.rfcNull = false;
	}

	/**
	 * Method 'setRfcNull'
	 * 
	 * @param value
	 */
	public void setRfcNull(boolean value)
	{
		this.rfcNull = value;
	}

	/**
	 * Method 'isRfcNull'
	 * 
	 * @return boolean
	 */
	public boolean isRfcNull()
	{
		return rfcNull;
	}

	/**
	 * Method 'getCurp'
	 * 
	 * @return int
	 */
	public int getCurp()
	{
		return curp;
	}

	/**
	 * Method 'setCurp'
	 * 
	 * @param curp
	 */
	public void setCurp(int curp)
	{
		this.curp = curp;
		this.curpNull = false;
	}

	/**
	 * Method 'setCurpNull'
	 * 
	 * @param value
	 */
	public void setCurpNull(boolean value)
	{
		this.curpNull = value;
	}

	/**
	 * Method 'isCurpNull'
	 * 
	 * @return boolean
	 */
	public boolean isCurpNull()
	{
		return curpNull;
	}

	/**
	 * Method 'getFea'
	 * 
	 * @return int
	 */
	public int getFea()
	{
		return fea;
	}

	/**
	 * Method 'setFea'
	 * 
	 * @param fea
	 */
	public void setFea(int fea)
	{
		this.fea = fea;
		this.feaNull = false;
	}

	/**
	 * Method 'setFeaNull'
	 * 
	 * @param value
	 */
	public void setFeaNull(boolean value)
	{
		this.feaNull = value;
	}

	/**
	 * Method 'isFeaNull'
	 * 
	 * @return boolean
	 */
	public boolean isFeaNull()
	{
		return feaNull;
	}

	/**
	 * Method 'getCiec'
	 * 
	 * @return int
	 */
	public int getCiec()
	{
		return ciec;
	}

	/**
	 * Method 'setCiec'
	 * 
	 * @param ciec
	 */
	public void setCiec(int ciec)
	{
		this.ciec = ciec;
		this.ciecNull = false;
	}

	/**
	 * Method 'setCiecNull'
	 * 
	 * @param value
	 */
	public void setCiecNull(boolean value)
	{
		this.ciecNull = value;
	}

	/**
	 * Method 'isCiecNull'
	 * 
	 * @return boolean
	 */
	public boolean isCiecNull()
	{
		return ciecNull;
	}

	/**
	 * Method 'getAltaPatronal'
	 * 
	 * @return int
	 */
	public int getAltaPatronal()
	{
		return altaPatronal;
	}

	/**
	 * Method 'setAltaPatronal'
	 * 
	 * @param altaPatronal
	 */
	public void setAltaPatronal(int altaPatronal)
	{
		this.altaPatronal = altaPatronal;
		this.altaPatronalNull = false;
	}

	/**
	 * Method 'setAltaPatronalNull'
	 * 
	 * @param value
	 */
	public void setAltaPatronalNull(boolean value)
	{
		this.altaPatronalNull = value;
	}

	/**
	 * Method 'isAltaPatronalNull'
	 * 
	 * @return boolean
	 */
	public boolean isAltaPatronalNull()
	{
		return altaPatronalNull;
	}

	/**
	 * Method 'getOtro'
	 * 
	 * @return String
	 */
	public String getOtro()
	{
		return otro;
	}

	/**
	 * Method 'setOtro'
	 * 
	 * @param otro
	 */
	public void setOtro(String otro)
	{
		this.otro = otro;
	}
	
	

	/**
	 * @return the altaShcp
	 */
	public int getAltaShcp() {
		return altaShcp;
	}

	/**
	 * @param altaShcp the altaShcp to set
	 */
	public void setAltaShcp(int altaShcp) {
		this.altaShcp = altaShcp;
		this.altaShcpNull = false;
	}

	/**
	 * @return the altaShcpNull
	 */
	public boolean isAltaShcpNull() {
		return altaShcpNull;
	}

	/**
	 * @param altaDhcpNull the altaDhcpNull to set
	 */
	public void setAltaShcpNull(boolean altaShcpNull) {
		this.altaShcpNull = altaShcpNull;
	}
	
	

	/**
	 * @return the idClienteGeneral
	 */
	public int getIdClienteGeneral() {
		return idClienteGeneral;
	}

	/**
	 * @param idClienteGeneral the idClienteGeneral to set
	 */
	public void setIdClienteGeneral(int idClienteGeneral) {
		this.idClienteGeneral = idClienteGeneral;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	@Override
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof DocumentosDTO)) {
			return false;
		}
		
		final DocumentosDTO _cast = (DocumentosDTO) _other;
		if (idCliente != _cast.idCliente) {
			return false;
		}
		
		if (actaCons != _cast.actaCons) {
			return false;
		}
		
		if (actaConsNull != _cast.actaConsNull) {
			return false;
		}
		
		if (actaNac != _cast.actaNac) {
			return false;
		}
		
		if (actaNacNull != _cast.actaNacNull) {
			return false;
		}
		
		if (identRepLegal != _cast.identRepLegal) {
			return false;
		}
		
		if (identRepLegalNull != _cast.identRepLegalNull) {
			return false;
		}
		
		if (identOficial != _cast.identOficial) {
			return false;
		}
		
		if (identOficialNull != _cast.identOficialNull) {
			return false;
		}
		
		if (compDomicilio != _cast.compDomicilio) {
			return false;
		}
		
		if (compDomicilioNull != _cast.compDomicilioNull) {
			return false;
		}
		
		if (rfc != _cast.rfc) {
			return false;
		}
		
		if (rfcNull != _cast.rfcNull) {
			return false;
		}
		
		if (curp != _cast.curp) {
			return false;
		}
		
		if (curpNull != _cast.curpNull) {
			return false;
		}
		
		if (fea != _cast.fea) {
			return false;
		}
		
		if (feaNull != _cast.feaNull) {
			return false;
		}
		
		if (ciec != _cast.ciec) {
			return false;
		}
		
		if (ciecNull != _cast.ciecNull) {
			return false;
		}
		
		if (altaPatronal != _cast.altaPatronal) {
			return false;
		}
		
		if (altaPatronalNull != _cast.altaPatronalNull) {
			return false;
		}
		
		if (otro == null ? _cast.otro != otro : !otro.equals( _cast.otro )) {
			return false;
		}
		
		if (altaShcp != _cast.altaShcp) {
			return false;
		}
		
		if (altaShcpNull != _cast.altaShcpNull) {
			return false;
		}
		if (idClienteGeneral != _cast.idClienteGeneral) {
			return false;
		}
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	@Override
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + idCliente;
		_hashCode = 29 * _hashCode + actaCons;
		_hashCode = 29 * _hashCode + (actaConsNull ? 1 : 0);
		_hashCode = 29 * _hashCode + actaNac;
		_hashCode = 29 * _hashCode + (actaNacNull ? 1 : 0);
		_hashCode = 29 * _hashCode + identRepLegal;
		_hashCode = 29 * _hashCode + (identRepLegalNull ? 1 : 0);
		_hashCode = 29 * _hashCode + identOficial;
		_hashCode = 29 * _hashCode + (identOficialNull ? 1 : 0);
		_hashCode = 29 * _hashCode + compDomicilio;
		_hashCode = 29 * _hashCode + (compDomicilioNull ? 1 : 0);
		_hashCode = 29 * _hashCode + rfc;
		_hashCode = 29 * _hashCode + (rfcNull ? 1 : 0);
		_hashCode = 29 * _hashCode + curp;
		_hashCode = 29 * _hashCode + (curpNull ? 1 : 0);
		_hashCode = 29 * _hashCode + fea;
		_hashCode = 29 * _hashCode + (feaNull ? 1 : 0);
		_hashCode = 29 * _hashCode + ciec;
		_hashCode = 29 * _hashCode + (ciecNull ? 1 : 0);
		_hashCode = 29 * _hashCode + altaPatronal;
		_hashCode = 29 * _hashCode + (altaPatronalNull ? 1 : 0);
		_hashCode = 29 * _hashCode + altaShcp;
		_hashCode = 29 * _hashCode + (altaShcpNull ? 1 : 0);
		if (otro != null) {
			_hashCode = 29 * _hashCode + otro.hashCode();
		}
		_hashCode = 29 * _hashCode + idClienteGeneral;
		
		return _hashCode;
	}

	/**
	 * Method 'createPk'
	 * 
	 * @return DocumentosPk
	 */
	public DocumentosPkDTO createPk()
	{
		return new DocumentosPkDTO(idCliente);
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	@Override
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "com.sophossystems.client.asmon.dto.Documentos: " );
		ret.append( "idCliente=" + idCliente );
		ret.append( ", actaCons=" + actaCons );
		ret.append( ", actaNac=" + actaNac );
		ret.append( ", identRepLegal=" + identRepLegal );
		ret.append( ", identOficial=" + identOficial );
		ret.append( ", compDomicilio=" + compDomicilio );
		ret.append( ", rfc=" + rfc );
		ret.append( ", curp=" + curp );
		ret.append( ", fea=" + fea );
		ret.append( ", ciec=" + ciec );
		ret.append( ", altaPatronal=" + altaPatronal );
		ret.append( ", otro=" + otro );
		ret.append( ", altaShcp=" + altaShcp );
		ret.append( ", idClienteGeneral=" + idClienteGeneral );
		return ret.toString();
	}

}
